{"ast":null,"code":"import _defineProperty from \"/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/@babel/runtime/helpers/esm/defineProperty.js\";\nimport _slicedToArray from \"/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/@babel/runtime/helpers/esm/slicedToArray.js\";\nimport classNames from 'classnames';\nimport * as React from 'react';\nimport { ConfigContext } from '../config-provider';\nimport Skeleton from '../skeleton';\nimport StatisticNumber from './Number';\nimport useStyle from './style';\nimport Countdown from './Countdown';\nvar Statistic = function Statistic(props) {\n  var customizePrefixCls = props.prefixCls,\n    className = props.className,\n    style = props.style,\n    valueStyle = props.valueStyle,\n    _props$value = props.value,\n    value = _props$value === void 0 ? 0 : _props$value,\n    title = props.title,\n    valueRender = props.valueRender,\n    prefix = props.prefix,\n    suffix = props.suffix,\n    _props$loading = props.loading,\n    loading = _props$loading === void 0 ? false : _props$loading,\n    onMouseEnter = props.onMouseEnter,\n    onMouseLeave = props.onMouseLeave,\n    _props$decimalSeparat = props.decimalSeparator,\n    decimalSeparator = _props$decimalSeparat === void 0 ? '.' : _props$decimalSeparat,\n    _props$groupSeparator = props.groupSeparator,\n    groupSeparator = _props$groupSeparator === void 0 ? ',' : _props$groupSeparator;\n  var _React$useContext = React.useContext(ConfigContext),\n    getPrefixCls = _React$useContext.getPrefixCls,\n    direction = _React$useContext.direction;\n  var prefixCls = getPrefixCls('statistic', customizePrefixCls);\n  var _useStyle = useStyle(prefixCls),\n    _useStyle2 = _slicedToArray(_useStyle, 2),\n    wrapSSR = _useStyle2[0],\n    hashId = _useStyle2[1];\n  var valueNode = /*#__PURE__*/React.createElement(StatisticNumber, Object.assign({\n    decimalSeparator: decimalSeparator,\n    groupSeparator: groupSeparator,\n    prefixCls: prefixCls\n  }, props, {\n    value: value\n  }));\n  var cls = classNames(prefixCls, _defineProperty({}, \"\".concat(prefixCls, \"-rtl\"), direction === 'rtl'), className, hashId);\n  return wrapSSR( /*#__PURE__*/React.createElement(\"div\", {\n    className: cls,\n    style: style,\n    onMouseEnter: onMouseEnter,\n    onMouseLeave: onMouseLeave\n  }, title && /*#__PURE__*/React.createElement(\"div\", {\n    className: \"\".concat(prefixCls, \"-title\")\n  }, title), /*#__PURE__*/React.createElement(Skeleton, {\n    paragraph: false,\n    loading: loading,\n    className: \"\".concat(prefixCls, \"-skeleton\")\n  }, /*#__PURE__*/React.createElement(\"div\", {\n    style: valueStyle,\n    className: \"\".concat(prefixCls, \"-content\")\n  }, prefix && /*#__PURE__*/React.createElement(\"span\", {\n    className: \"\".concat(prefixCls, \"-content-prefix\")\n  }, prefix), valueRender ? valueRender(valueNode) : valueNode, suffix && /*#__PURE__*/React.createElement(\"span\", {\n    className: \"\".concat(prefixCls, \"-content-suffix\")\n  }, suffix)))));\n};\nStatistic.Countdown = Countdown;\nexport default Statistic;","map":{"version":3,"names":["classNames","React","ConfigContext","Skeleton","StatisticNumber","useStyle","Countdown","Statistic","props","customizePrefixCls","prefixCls","className","style","valueStyle","value","title","valueRender","prefix","suffix","loading","onMouseEnter","onMouseLeave","decimalSeparator","groupSeparator","useContext","getPrefixCls","direction","wrapSSR","hashId","valueNode","createElement","Object","assign","cls","paragraph"],"sources":["/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/antd/es/statistic/Statistic.js"],"sourcesContent":["import classNames from 'classnames';\nimport * as React from 'react';\nimport { ConfigContext } from '../config-provider';\nimport Skeleton from '../skeleton';\nimport StatisticNumber from './Number';\nimport useStyle from './style';\nimport Countdown from './Countdown';\nconst Statistic = props => {\n  const {\n    prefixCls: customizePrefixCls,\n    className,\n    style,\n    valueStyle,\n    value = 0,\n    title,\n    valueRender,\n    prefix,\n    suffix,\n    loading = false,\n    onMouseEnter,\n    onMouseLeave,\n    decimalSeparator = '.',\n    groupSeparator = ','\n  } = props;\n  const {\n    getPrefixCls,\n    direction\n  } = React.useContext(ConfigContext);\n  const prefixCls = getPrefixCls('statistic', customizePrefixCls);\n  const [wrapSSR, hashId] = useStyle(prefixCls);\n  const valueNode = /*#__PURE__*/React.createElement(StatisticNumber, Object.assign({\n    decimalSeparator: decimalSeparator,\n    groupSeparator: groupSeparator,\n    prefixCls: prefixCls\n  }, props, {\n    value: value\n  }));\n  const cls = classNames(prefixCls, {\n    [`${prefixCls}-rtl`]: direction === 'rtl'\n  }, className, hashId);\n  return wrapSSR( /*#__PURE__*/React.createElement(\"div\", {\n    className: cls,\n    style: style,\n    onMouseEnter: onMouseEnter,\n    onMouseLeave: onMouseLeave\n  }, title && /*#__PURE__*/React.createElement(\"div\", {\n    className: `${prefixCls}-title`\n  }, title), /*#__PURE__*/React.createElement(Skeleton, {\n    paragraph: false,\n    loading: loading,\n    className: `${prefixCls}-skeleton`\n  }, /*#__PURE__*/React.createElement(\"div\", {\n    style: valueStyle,\n    className: `${prefixCls}-content`\n  }, prefix && /*#__PURE__*/React.createElement(\"span\", {\n    className: `${prefixCls}-content-prefix`\n  }, prefix), valueRender ? valueRender(valueNode) : valueNode, suffix && /*#__PURE__*/React.createElement(\"span\", {\n    className: `${prefixCls}-content-suffix`\n  }, suffix)))));\n};\nStatistic.Countdown = Countdown;\nexport default Statistic;"],"mappings":";;AAAA,OAAOA,UAAU,MAAM,YAAY;AACnC,OAAO,KAAKC,KAAK,MAAM,OAAO;AAC9B,SAASC,aAAa,QAAQ,oBAAoB;AAClD,OAAOC,QAAQ,MAAM,aAAa;AAClC,OAAOC,eAAe,MAAM,UAAU;AACtC,OAAOC,QAAQ,MAAM,SAAS;AAC9B,OAAOC,SAAS,MAAM,aAAa;AACnC,IAAMC,SAAS,GAAG,SAAZA,SAAS,CAAGC,KAAK,EAAI;EACzB,IACaC,kBAAkB,GAc3BD,KAAK,CAdPE,SAAS;IACTC,SAAS,GAaPH,KAAK,CAbPG,SAAS;IACTC,KAAK,GAYHJ,KAAK,CAZPI,KAAK;IACLC,UAAU,GAWRL,KAAK,CAXPK,UAAU;IAAA,eAWRL,KAAK,CAVPM,KAAK;IAALA,KAAK,6BAAG,CAAC;IACTC,KAAK,GASHP,KAA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